﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DotNetNuke.Modules.DNNPagination.Data;

namespace DotNetNuke.Modules.DNNPagination.Components
{
    public class cObjectController
    {       
        public static IDataReader getObject(int moduleId)
        {
            return DataProvider.Instance().getObject(moduleId);
        }

        public static int addObject(cObject o)
        {
            return Convert.ToInt32(DataProvider.Instance().addObject(o));
        }

        public static void updateObject(cObject o)
        {
            DataProvider.Instance().updateObject(o);
        }
    }
}